package com.goldman.http.common.s2s.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Status {
    private int code;
    private String msg;
    private String err;

    public Status(ErrorCode errorCode, String err) {
        this.code = errorCode.getCode();
        this.msg = errorCode.getMsg();
        this.err = err;
    }
}
